using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    public class ProductInfo
    {
        #region Model
        private int _id;
        private int _adminid;
        private int _category1id;
        private int _category2id;
        private string _num;
        private string _name;
        private string[] _imgs={};
        private double _oprice;
        private double _aprice;
        private double _pprice;
        private string _unit;
        private int _sellcount;
        private int _allsellcount;
        private int _librarycount;
        private string _tags="";
        private string _context;
        private int _clickcount;
        private int _sort;
        private double _allrank;
        private int _updown = 1;
        private double _expressmoney;
        private int _pricetype;
        private string _pricename;
        private int _ispin;
        private string _format1;
        private string _format2;
        private string _format3;
        private string _format4;
        private string _format5;
        private DateTime _createdate;

        //拓展字段
        public string Img = "";
        public string OPriceText = "";
        public string[] APriceText = { };
        public string[] TagsList = { };
        public bool IsStore = false;
        public List<dynamic> FormatList = new List<dynamic>();
        public List<PriceInfo> PriceList = new List<PriceInfo>();
        public List<ReplyInfo> ReplyList = new List<ReplyInfo>();
        public int ReplyCount = 0;
        public List<ProductParamInfo> ParamList = new List<ProductParamInfo>();
        
        /// <summary>
        /// 唯一ID
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 商户ID
        /// </summary>
        public int AdminID
        {
            set { _adminid = value; }
            get { return _adminid; }
        }
        /// <summary>
        /// 1级类别ID
        /// </summary>
        public int Category1ID
        {
            set { _category1id = value; }
            get { return _category1id; }
        }
        /// <summary>
        /// 2级类别ID
        /// </summary>
        public int Category2ID
        {
            set { _category2id = value; }
            get { return _category2id; }
        }
        /// <summary>
        /// 产品编号
        /// </summary>
        public string Num
        {
            set { _num = value; }
            get { return _num; }
        }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Name
        {
            set { _name = value; }
            get { return _name; }
        }
        /// <summary>
        /// 产品图片
        /// </summary>
        public string[] Imgs
        {
            set { _imgs = value; }
            get { return _imgs; }
        }
        /// <summary>
        /// 原价
        /// </summary>
        public double OPrice
        {
            set { _oprice = value; }
            get { return _oprice; }
        }
        /// <summary>
        /// 现价
        /// </summary>
        public double APrice
        {
            set { _aprice = value; }
            get { return _aprice; }
        }
        /// <summary>
        /// 拼团价格
        /// </summary>
        public double PPrice
        {
            set { _pprice = value; }
            get { return _pprice; }
        }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit
        {
            set { _unit = value; }
            get { return _unit; }
        }
        /// <summary>
        /// 销量
        /// </summary>
        public int SellCount
        {
            set { _sellcount = value; }
            get { return _sellcount; }
        }
        /// <summary>
        /// 总销量
        /// </summary>
        public int AllSellCount
        {
            set { _allsellcount = value; }
            get { return _allsellcount; }
        }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int LibraryCount
        {
            set { _librarycount = value; }
            get { return _librarycount; }
        }
        /// <summary>
        /// 产品标签
        /// </summary>
        public string Tags
        {
            set { _tags = value; }
            get { return _tags; }
        }
        /// <summary>
        /// 产品详情
        /// </summary>
        public string Context
        {
            set { _context = value; }
            get { return _context; }
        }
        /// <summary>
        /// 点击量
        /// </summary>
        public int ClickCount
        {
            set { _clickcount = value; }
            get { return _clickcount; }
        }
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort
        {
            set { _sort = value; }
            get { return _sort; }
        }
        /// <summary>
        /// 综合排名
        /// </summary>
        public double AllRank
        {
            set { _allrank = value; }
            get { return _allrank; }
        }
        /// <summary>
        /// 上架下架 0.下架 1上架
        /// </summary>
        public int UpDown
        {
            set { _updown = value; }
            get { return _updown; }
        }
        /// <summary>
        /// 快递费用
        /// </summary>
        public double ExpressMoney
        {
            set { _expressmoney = value; }
            get { return _expressmoney; }
        }
        /// <summary>
        /// 价格类型：1.单价格   2.多价格
        /// </summary>
        public int PriceType
        {
            set { _pricetype = value; }
            get { return _pricetype; }
        }
        /// <summary>
        /// 多价格标题
        /// </summary>
        public string PriceName
        {
            set { _pricename = value; }
            get { return _pricename; }
        }
        /// <summary>
        /// 是否加入拼团
        /// </summary>
        public int IsPin
        {
            set { _ispin = value; }
            get { return _ispin; }
        }
        /// <summary>
        /// 参数1
        /// </summary>
        public string Format1
        {
            set { _format1 = value; }
            get { return _format1; }
        }
        /// <summary>
        /// 参数2
        /// </summary>
        public string Format2
        {
            set { _format2 = value; }
            get { return _format2; }
        }
        /// <summary>
        /// 参数3
        /// </summary>
        public string Format3
        {
            set { _format3 = value; }
            get { return _format3; }
        }
        /// <summary>
        /// 参数4
        /// </summary>
        public string Format4
        {
            set { _format4 = value; }
            get { return _format4; }
        }
        /// <summary>
        /// 参数5
        /// </summary>
        public string Format5
        {
            set { _format5 = value; }
            get { return _format5; }
        }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        #endregion Model
    }
}

